/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * DialogoAcudiente.java
 *
 * Created on 11/01/2012, 08:29:17 AM
 */
package co.edu.eam.clinica.vista.gui.paciente;

import co.edu.eam.clinica.vista.controladores.paciente.controladorDialogoAcudiente;
import co.edu.eam.clinica.vista.controladores.paciente.controladorPanelCrearPaciente;
import co.edu.eam.clinica.vista.gui.common.BotonOncologos;
import co.edu.eam.persitencia.entidades.Acudiente;
import co.edu.eam.persitencia.entidades.Paciente;
import co.edu.eam.persitencia.entidades.Telefono;
import co.edu.eam.persitencia.enumeraciones.SexoEnum;
import co.edu.eam.persitencia.enumeraciones.TipoDocumentoEnum;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;

/**
 *
 * @author Camilo Andres
 */
public class DialogoAcudiente extends javax.swing.JDialog {

    private controladorDialogoAcudiente controladorDialogo;
    private controladorPanelCrearPaciente controladorPanel;

    /**
     * Creates new form DialogoAcudiente
     */
    public DialogoAcudiente(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();

         llenarCombos();
        setVisible(true);
    }

    /**
     * llena el combo tipo documento de la ventana
     */
    public void llenarCombos(){
        TipoDocumentoEnum [] documentos= TipoDocumentoEnum.values();
        
        for (int i = 0; i <documentos.length; i++) {
            cbTipoDoc.addItem(i);
        }
    }
    
    /*
     * se encarga de añidar los telefonos que tenga un acudiente
     */
    public String contar(List<Telefono> tas) {
        String s = "-";
        for (Telefono telefono : tas) {
            s = telefono.getNumero() + s;
        }



        return s;
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel2 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        tfDocumento = new javax.swing.JTextField();
        jLabel8 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        tfNombre = new javax.swing.JTextField();
        tfApellido = new javax.swing.JTextField();
        rbMAsculino = new javax.swing.JRadioButton();
        tfDireccion = new javax.swing.JTextField();
        rbFemenino = new javax.swing.JRadioButton();
        tfEmail = new javax.swing.JTextField();
        jLabel1 = new javax.swing.JLabel();
        cbTipoDoc = new javax.swing.JComboBox();
        jLabel7 = new javax.swing.JLabel();
        dcFechaNac = new com.toedter.calendar.JDateChooser();
        jLabel9 = new javax.swing.JLabel();
        tfTelefono = new javax.swing.JTextField();
        tfSegundoApellido = new javax.swing.JTextField();
        jLabel10 = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        tfSegundoNOmbre = new javax.swing.JTextField();
        jButton1 = new javax.swing.JButton();
        bttnbuscar = new javax.swing.JButton();
        bttnEditar = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

        jLabel2.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel2.setText("Primer Apellido");

        jLabel4.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel4.setText("Email");

        jLabel3.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel3.setText("Direccion");

        jLabel8.setText("Documento");

        jLabel5.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel5.setText("Fecha Nacimiento");

        jLabel6.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel6.setText("Sexo");

        rbMAsculino.setText("Masculino");

        rbFemenino.setText("Femenino");

        jLabel1.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel1.setText("Primer Nombre");

        jLabel7.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel7.setText("Telefono");

        jLabel9.setText("Tipo");

        jLabel10.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel10.setText("Segundo Apellido");

        jLabel11.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel11.setText("Segundo Nombre");

        tfSegundoNOmbre.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                tfSegundoNOmbreActionPerformed(evt);
            }
        });

        jButton1.setText("Guardar");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        bttnbuscar.setText("Buscar");
        bttnbuscar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bttnbuscarActionPerformed(evt);
            }
        });

        bttnEditar.setText("Editar");
        bttnEditar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bttnEditarActionPerformed(evt);
            }
        });

        jButton2.setText("Eliminar");
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton2ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabel8)
                        .addGap(495, 495, 495))
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(bttnbuscar)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabel5)
                                .addComponent(jLabel4)
                                .addComponent(jLabel6)
                                .addComponent(jLabel3)
                                .addComponent(jLabel2)
                                .addComponent(jLabel1)
                                .addComponent(jLabel7)))
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(tfEmail)
                                    .addComponent(tfDireccion)
                                    .addComponent(dcFechaNac, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addGroup(layout.createSequentialGroup()
                                        .addComponent(tfDocumento, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(jLabel9)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(cbTipoDoc, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                    .addGroup(layout.createSequentialGroup()
                                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                            .addComponent(tfNombre, javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(tfApellido, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 153, Short.MAX_VALUE))
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jLabel10)
                                            .addComponent(jLabel11))
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(tfSegundoNOmbre, javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(tfSegundoApellido, javax.swing.GroupLayout.Alignment.LEADING)))
                                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                                        .addComponent(tfTelefono)
                                        .addGap(38, 38, 38))
                                    .addGroup(layout.createSequentialGroup()
                                        .addComponent(rbMAsculino)
                                        .addGap(18, 18, 18)
                                        .addComponent(rbFemenino)
                                        .addGap(0, 0, Short.MAX_VALUE)))
                                .addContainerGap())
                            .addGroup(layout.createSequentialGroup()
                                .addGap(48, 48, 48)
                                .addComponent(jButton1)
                                .addGap(56, 56, 56)
                                .addComponent(bttnEditar)
                                .addGap(55, 55, 55)
                                .addComponent(jButton2)
                                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel8)
                    .addComponent(tfDocumento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel9)
                    .addComponent(cbTipoDoc, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel1)
                    .addComponent(tfNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel11)
                    .addComponent(tfSegundoNOmbre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(8, 8, 8)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(tfApellido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(tfSegundoApellido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel10))
                        .addGap(2, 2, 2)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel3)
                    .addComponent(tfDireccion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel4)
                    .addComponent(tfEmail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabel5)
                        .addGap(18, 18, 18)
                        .addComponent(jLabel6))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(dcFechaNac, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(rbMAsculino)
                            .addComponent(rbFemenino))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(tfTelefono, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel7))
                .addGap(49, 49, 49)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton1)
                    .addComponent(bttnbuscar)
                    .addComponent(bttnEditar)
                    .addComponent(jButton2))
                .addContainerGap(84, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void bAceptarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bAceptarActionPerformed

        dispose();
    }//GEN-LAST:event_bAceptarActionPerformed

    private void tfSegundoNOmbreActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tfSegundoNOmbreActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_tfSegundoNOmbreActionPerformed

    private void bAgregarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bAgregarActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_bAgregarActionPerformed

    private void bCancelarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bCancelarActionPerformed
        // TODO add your handling code here:
        dispose();
    }//GEN-LAST:event_bCancelarActionPerformed

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        // TODO add your handling code here:
if (tfDocumento.getText().equals("")) {
                tfDocumento.requestFocus();
                JOptionPane.showMessageDialog(this, "POR FAVOR DIGITE EL DOCUMENTO DEL PACIENTE");
            } else {
    
    if (tfNombre.getText().equals("")) {
                    tfNombre.requestFocus();
                    JOptionPane.showMessageDialog(this, "POR FAVOR DIGITE EL PRIMER NOMBRE DEL PACIENTE");
                } else {
        if (tfSegundoNOmbre.getText().equals("")) {
                        JOptionPane.showMessageDialog(this, "POR FAVOR DIGITE EL SEGUNDO NOMBRE DEL PACIENTE");
                        tfSegundoNOmbre.requestFocus();
                    } else {
            if (tfApellido.getText().equals("")) {
                            JOptionPane.showMessageDialog(this, "POR FAVOR DIGITE EL PRIMER APELLIDO  DEL PACIENTE");
                            tfApellido.requestFocus();
                        } else {
                if (tfDireccion.getText().equals("")) {
                                JOptionPane.showMessageDialog(this, "POR FAVOR DIGITE LA DIRECCION  DEL PACIENTE");
                                tfDireccion.requestFocus();
                            } else {
                     if (tfEmail.getText().equals("")) {
                                    JOptionPane.showMessageDialog(this, "POR FAVOR DIGITE EL EMAIL  DEL PACIENTE");
                                    tfEmail.requestFocus();
                                } else {
                            String documento = tfDocumento.getText();
        Enum tipo = (TipoDocumentoEnum) cbTipoDoc.getSelectedItem();
        String primerNombre = tfNombre.getText();
        String segundoNombre = tfSegundoNOmbre.getText();
        String primerApellido = tfApellido.getText();
        String segundoApellido = tfSegundoApellido.getText();
        String direccion = tfDireccion.getText();
        String email = tfEmail.getText();
        Date fecha = dcFechaNac.getDate();

        Acudiente nuevo = new Acudiente(documento, primerNombre, segundoNombre, primerApellido, segundoApellido, TipoDocumentoEnum.PASAPORTE, direccion, email, SexoEnum.FEMENINO, null);

        /////////////////////////
        SexoEnum sexo;

        if (rbFemenino.isSelected()) {
            sexo = SexoEnum.FEMENINO;
        } else {
            sexo = SexoEnum.MASCULINO;
        }
        //////////////////////////
        Enum sex = sexo;
        int telefono = Integer.parseInt(tfTelefono.getText());


        try {
            Acudiente j = controladorDialogo.buscarAcudiente(documento);
            if (j == null) {
                
                Paciente hh= controladorPanel.buscarPaciente(JOptionPane.showInputDialog(this,"INGRESE DOCUMENTO DE PACIENTE"));
                if(hh!=null){
                    controladorDialogo.agregarAcudientePaciente(nuevo, hh);
                }else{
                    JOptionPane.showMessageDialog(this, "PACIENTE NO EXISTE");
                }
                
            } else {
                JOptionPane.showMessageDialog(this, "EL ACUDIENTE YA EXISTE");
            }



        } catch (Exception ex) {
            Logger.getLogger(DialogoAcudiente.class.getName()).log(Level.SEVERE, null, ex);
        }
            }
        }
    }
}
    }  }                            
    }//GEN-LAST:event_jButton1ActionPerformed

    private void bttnbuscarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bttnbuscarActionPerformed

            if (tfDocumento.getText().equals("")) {
                JOptionPane.showMessageDialog(this, "INGRESE EL DOCUMENTO");
                tfDocumento.requestFocus();

            } else {

            try {
                
              String doc = tfDocumento.getText();
              Acudiente  buscado = controladorDialogo.buscarAcudiente(doc);
                
                
                if (buscado != null) {
                    tfNombre.setText(buscado.getNombre());
                    tfSegundoNOmbre.setText(buscado.getSegundoNombre());
                    tfApellido.setText(buscado.getPrimerApellido());
                    tfSegundoApellido.setText(buscado.getSegundoApellido());
                    tfDireccion.setText(buscado.getDireccion());
                    tfEmail.setText(buscado.getEmail());
                    cbTipoDoc.setSelectedItem(buscado.getTipoDocumento());
                    
                    tfTelefono.setText(contar(buscado.getTelefonos()));

                } else {

                    JOptionPane.showMessageDialog(this, "EL ACUDIENTE NO EXISTE");
                }

            } catch (Exception ex) {
                Logger.getLogger(DialogoAcudiente.class.getName()).log(Level.SEVERE, null, ex);
            }

       }

    }//GEN-LAST:event_bttnbuscarActionPerformed

    private void bttnEditarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bttnEditarActionPerformed
        // TODO add your handling code here:
        try {
            String documento = tfDocumento.getText();
            Enum tipo = (TipoDocumentoEnum) cbTipoDoc.getSelectedItem();
            String primerNombre = tfNombre.getText();
            String segundoNombre = tfSegundoNOmbre.getText();
            String primerApellido = tfApellido.getText();
            String segundoApellido = tfSegundoApellido.getText();
            String direccion = tfDireccion.getText();
            String email = tfEmail.getText();
            Date fecha = dcFechaNac.getDate();

            Acudiente h = new Acudiente(documento, primerNombre, segundoNombre, primerApellido, segundoApellido, TipoDocumentoEnum.PASAPORTE, direccion, email, SexoEnum.FEMENINO, null);


            Paciente r = controladorPanel.buscarPaciente(JOptionPane.showInputDialog(null, "INGRESE DOCUMENTO PACIENTE"));

            if (r != null) {
                controladorDialogo.editarAcudienteDePaciente(h, r);
            } else {
                JOptionPane.showMessageDialog(this, "PACIENTE NO EXISTE");
            }


        } catch (Exception ex) {
            Logger.getLogger(DialogoAcudiente.class.getName()).log(Level.SEVERE, null, ex);
        }






    }//GEN-LAST:event_bttnEditarActionPerformed

    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
        // TODO add your handling code here:
        try {
            if (tfDocumento.getText().equals("")) {
                JOptionPane.showMessageDialog(this, "INGRESE EL DOCUMENTO");
                tfDocumento.requestFocus();

            } else {
                String doc = tfDocumento.getText();
                Paciente g = controladorPanel.buscarPaciente(JOptionPane.showInputDialog(null, "INGRESE DOCUMENTO PACIENTE"));
                List<Acudiente> acu = g.getAcudientes();
                for (Acudiente acudiente : acu) {
                    if (acudiente.getDocumento().equals(doc)) {
                        controladorDialogo.quitarAcudienteDePaciente(acudiente, g);
                    } else {
                        JOptionPane.showMessageDialog(this, "EL PACIENTE NO TIENE ESE ACUDIENTE");
                    }
                }
            }



        } catch (Exception ex) {
            Logger.getLogger(DialogoAcudiente.class.getName()).log(Level.SEVERE, null, ex);
        }


    }//GEN-LAST:event_jButton2ActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                DialogoAcudiente dialog = new DialogoAcudiente(new javax.swing.JFrame(), true);
                dialog.addWindowListener(new java.awt.event.WindowAdapter() {
                    public void windowClosing(java.awt.event.WindowEvent e) {
                        System.exit(0);
                    }
                });
                dialog.setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton bttnEditar;
    private javax.swing.JButton bttnbuscar;
    private javax.swing.JComboBox cbTipoDoc;
    private com.toedter.calendar.JDateChooser dcFechaNac;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JRadioButton rbFemenino;
    private javax.swing.JRadioButton rbMAsculino;
    private javax.swing.JTextField tfApellido;
    private javax.swing.JTextField tfDireccion;
    private javax.swing.JTextField tfDocumento;
    private javax.swing.JTextField tfEmail;
    private javax.swing.JTextField tfNombre;
    private javax.swing.JTextField tfSegundoApellido;
    private javax.swing.JTextField tfSegundoNOmbre;
    private javax.swing.JTextField tfTelefono;
    // End of variables declaration//GEN-END:variables
}
